Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Video block crashes right after insert #18954

Merged

Conversation

jorgefilipecosta
Copy link
Member

Description

toggleAttribute was removed in #18660, but we were still defining the toggleAttribute with a bind in the constructor. This made all video blocks crash after being inserted or when rendered on the editor.

How has this been tested?

I added a video block
I verified the block does not crashes.

@jorgefilipecosta jorgefilipecosta added [Type] Bug An existing feature does not function as intended [Priority] High Used to indicate top priority items that need quick attention labels Dec 5, 2019
@jorgefilipecosta jorgefilipecosta merged commit 20d2cdf into master Dec 5, 2019
@jorgefilipecosta jorgefilipecosta deleted the fix/video-block-crashes-right-after-insert branch December 5, 2019 21:47
@youknowriad youknowriad added this to the Gutenberg 7.1 milestone Dec 9, 2019
@youknowriad
Copy link
Contributor

It's bad that our tests suite didn't catch this. Just a simple e2e test per block to just insert an empty block would be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Priority] High Used to indicate top priority items that need quick attention [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants